package com.example.sqltest.controller;

import com.example.sqltest.entity.OrderItem;
import com.example.sqltest.service.mybatisPlus.OrderItemService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("orderItem")
public class OrderItemController {

    @Resource
    private OrderItemService orderItemService;

    @PostMapping("insert")
    public void insert(OrderItem orderItem){
        orderItemService.insert(orderItem);
    }
}
